<?php
use Phalcon\Mvc\Model;
class IndexController extends ControllerBase
{

    public function indexAction()
    {
        
        $model =  new Demo();
        $res = $model->findFirst(array('id'=>1))->toArray();
        print_r($res);
        exit;
      //$this->session->set('aaa', 'cccc');
     // print_r( $this->session->get('aaa'));
     // exit;
       // $this->view->setVar('demo','hello dem');
    }

}

